#Boa:Frame:Frame_Pagamento

import wx

def create(parent):
    return Frame_Pagamento(parent)

[wxID_FRAME_PAGAMENTO, wxID_FRAME_PAGAMENTOBUTTON1, 
 wxID_FRAME_PAGAMENTOBUTTON2, wxID_FRAME_PAGAMENTOBUTTON3, 
 wxID_FRAME_PAGAMENTOBUTTON4, wxID_FRAME_PAGAMENTOSTATICBITMAP1, 
 wxID_FRAME_PAGAMENTOSTATICBOX1, 
] = [wx.NewId() for _init_ctrls in range(7)]

class Frame_Pagamento(wx.Frame):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAME_PAGAMENTO,
              name=u'Frame_Pagamento', parent=prnt, pos=wx.Point(595, 140),
              size=wx.Size(547, 568), style=wx.DEFAULT_FRAME_STYLE,
              title=u'Frame_Pagamento')
        self.SetClientSize(wx.Size(531, 530))
        self.SetBackgroundColour(wx.Colour(255, 255, 255))
        self.Center(wx.BOTH)

        self.staticBitmap1 = wx.StaticBitmap(bitmap=wx.Bitmap(u"logotipo300dpi-30%.jpg",
              wx.BITMAP_TYPE_JPEG), id=wxID_FRAME_PAGAMENTOSTATICBITMAP1,
              name='staticBitmap1', parent=self, pos=wx.Point(8, 328),
              size=wx.Size(531, 184), style=0)

        self.staticBox1 = wx.StaticBox(id=wxID_FRAME_PAGAMENTOSTATICBOX1,
              label=u'Receber Pagamento', name='staticBox1', parent=self,
              pos=wx.Point(16, 16), size=wx.Size(496, 288), style=0)
        self.staticBox1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))

        self.button1 = wx.Button(id=wxID_FRAME_PAGAMENTOBUTTON1,
              label=u'Voltar Para o Menu', name='button1', parent=self,
              pos=wx.Point(305, 209), size=wx.Size(112, 32), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,
              id=wxID_FRAME_PAGAMENTOBUTTON1)

        self.button2 = wx.Button(id=wxID_FRAME_PAGAMENTOBUTTON2,
              label=u'Novo Pagamento Com Agendamento', name='button2',
              parent=self, pos=wx.Point(153, 40), size=wx.Size(224, 56),
              style=0)
        self.button2.Center(wx.HORIZONTAL)
        self.button2.Bind(wx.EVT_BUTTON, self.OnButton2Button,
              id=wxID_FRAME_PAGAMENTOBUTTON2)

        self.button3 = wx.Button(id=wxID_FRAME_PAGAMENTOBUTTON3,
              label=u'Nova Pagamento Sem Agendamento', name='button3',
              parent=self, pos=wx.Point(153, 112), size=wx.Size(224, 56),
              style=0)
        self.button3.Center(wx.HORIZONTAL)
        self.button3.Show(False)
        self.button3.Bind(wx.EVT_BUTTON, self.OnButton3Button,
              id=wxID_FRAME_PAGAMENTOBUTTON3)

        self.button4 = wx.Button(id=wxID_FRAME_PAGAMENTOBUTTON4,
              label=u'Consultar Receita', name='button4', parent=self,
              pos=wx.Point(112, 208), size=wx.Size(112, 32), style=0)
        self.button4.Enable(True)
        self.button4.Bind(wx.EVT_BUTTON, self.OnButton4Button,
              id=wxID_FRAME_PAGAMENTOBUTTON4)

    def __init__(self, parent):
        self._init_ctrls(parent)
        
    def OnButton1Button(self, event):
        import MainFrame
        MainFrame.create(None).Show()
        self.Close()

    def OnButton2Button(self, event):
        import Frame_localIDAgenda
        Frame_localIDAgenda.create(None).Show()
        self.Close()

    def OnButton3Button(self, event):
        #abrir tela de pagamento sem preenchimentos
        import Frame_EfetuarPagamento
        Frame_EfetuarPagamento.create(None, None, None).Show()
        self.Close()

    def OnButton4Button(self, event):
        import Frame_Relatorio
        Frame_Relatorio.create(None).Show()
